package com.sky.service;

import com.sky.annotation.AutoFill;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void save(DishDTO dishDTO);

    PageResult find(DishPageQueryDTO dishPageQueryDTO);

    void delete(List<Long> ids);

    void updateDishAndFlavor(DishDTO dishDTO);

    DishVO selectById(Long id);

    @AutoFill(OperationType.UPDATE)
    void setStatus(Integer status, Long id);

    List<DishVO> list(Long categoryId);
    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

}
